/*
 * AddBarrierButtonMouseListener.cpp
 *
 *  Created on: 11-01-2011
 *      Author: Przemek
 */

#include "listener/AddBarrierButtonMouseListener.hpp"
#include "world/creation/BarrierCreateToolState.hpp"

AddBarrierButtonMouseListener::AddBarrierButtonMouseListener(CreationState* creationState) :
	creationState(creationState)
{

}

void AddBarrierButtonMouseListener::mouseReleased(const MouseListener::EventArguments&)
{
	creationState->setCreateTool(new BarrierCreateToolState());
}
